/**
 * Copyright (C) 2018-2021
 * All rights reserved, Designed By www.yixiang.co

 */
package co.yixiang.print;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 打印订单数据
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderPrint {
	private String title;
	private String price;
	private String num;

    public static OrderPrintBuilder builder() {
        return new OrderPrintBuilder();
    }

    public static class OrderPrintBuilder {
        private String title;
        private String price;
        private String num;

        OrderPrintBuilder() {
        }

        public OrderPrintBuilder title(String title) {
            this.title = title;
            return this;
        }

        public OrderPrintBuilder price(String price) {
            this.price = price;
            return this;
        }

        public OrderPrintBuilder num(String num) {
            this.num = num;
            return this;
        }

        public OrderPrint build() {
            return new OrderPrint(title, price, num);
        }

        public String toString() {
            return "OrderPrint.OrderPrintBuilder(title=" + this.title + ", price=" + this.price + ", num=" + this.num + ")";
        }
    }
}
